package day001.DI;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

import day001.DI.TestDao;

public class TestMain {
	public static void main(String[] args) {
		ApplicationContext context = new FileSystemXmlApplicationContext("src/day001/DI/test.xml");
		TestDao testDao = (TestDao)context.getBean("testDao");
		
		System.out.println("START.....");
		testDao.printMessage();
		System.out.println("END.....");
	}
}
